var {
	window.onload = setupRefresh;
	$('#body').css({'min-height': $(window).height() - $('.footer').height() - 20});
	function setupRefresh() {
		setTimeout("refreshPage();", 600000);
	}
	function refreshPage() {
		window.location = location.href;
	}
	function info(e,i){
		if($("#id").val().length == 0){
			$("#id").focus();
		}else if($("#uk").val().length == 0){
			$("#uk").focus();
		}else{
			if(i){
				NProgress.start();
				var sdata = 'id=' + $('#id').val() + '&uk=' + $('#uk').val() + '&game=' + e + '&get=1';
			}else{
				var sdata = 'id=' + $('#id').val() + '&uk=' + $('#uk').val() + '&game=' + e;
			}
			$.post('info.php', sdata, function(data){
				$('#player-info').html(data);
			}).fail( function(){
				alert('Not work now');
			});
		}
	}
	(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
	(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
	m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
	})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
	ga('create', 'UA-47797395-1', 'ntuan-2.tk');
	ga('send', 'pageview');
}